package system.task.logger;

import lombok.Getter;
import system.task.Task;
import system.task.config.TaskConfig;

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

@Getter
public class TaskLoggerContext {
    private final TaskConfig config;
    private final Task task;
    private final String runId;
    private final List<TaskLoggerWriter> logWriters = new CopyOnWriteArrayList<>();

    public TaskLoggerContext(TaskConfig config, Task task, String runId) {
        this.config = config;
        this.task = task;
        this.runId = runId;
    }
}
